import { getHttpPost } from "../tokens/http";

export interface ISendData {
    token: string;
    name: string;
}
export default async (data: ISendData) => {
    try {
        const httpPost = getHttpPost()
        const res = await httpPost('send', data)
        return res;
    } catch (e) {
        throw e;
    }
}